<?php
session_start();
error_reporting(E_ALL);

require 'dbvars.php';

// Connect to server and select databse.
$con = new mysqli("$host", "$username", "$password", "$db_name");
if ($con->connect_error)
{
    die('Connect Error (' . $con->connect_errno . ') ' . $con->connect_error);
}

$sql = "delete from $gobject_tbl_name where id=".$_GET['gobjId'];
$con->query($sql);
$con->close();
header("location:index.php");

?>

